#pragma once
#include "audionode.h"
class CSineWave :
	public CAudioNode
{
public:
	CSineWave(void);
	~CSineWave(void);

	//! Start audio generation
	virtual void Start();

	//! Generate one frame of audio
	virtual bool Generate();
	
	//! Set the sine wave frequency
	void SetFreq( double aF ) { mFreq = aF; }

	//! Set the sine wave amplitude
	void SetAmplitude( double aA ) { mAmp = aA; }

private:
	double mFreq;
	double mAmp;
	double mPhase;


};

